| 4D Chart v13CT GET AREA BOUNDARY | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  | 
    4D Chart v13
 CT GET AREA BOUNDARY 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CT GET AREA BOUNDARY ( area ; boundaryCode ; left ; top ; right ; bottom ) | ||||||||
| Parameter | Type | Description | ||||||
| area | Longint |   | 4D Chart area | |||||
| boundaryCode | Integer |   | Boundary code 0 = Document boundary 1 = Clipped boundary | |||||
| left | Real |   | Receives left boundary of area | |||||
| top | Real |   | Receives top boundary of area | |||||
| right | Real |   | Receives right boundary of area | |||||
| bottom | Real |   | Receives bottom boundary of area | |||||
The CT GET AREA BOUNDARY command returns into the left, top, right, and bottom variables the coordinates of the area rectangle.
This example creates a geometric object composed of several lines in an existing chart area, gets the area’s boundary coordinates, and centers the object in the area.
 For($i;0;360;5)
    vLine:=CT Draw line(Area;50*Cos($i);50*Sin($i);0;0;0)
 End for
 CT GET AREA BOUNDARY(Area;1;$left;$top;$right;$bottom)
 CT MOVE(Area;-1;(($right-$left)/2)-50;(($bottom-$top)/2)-50)
	Product:  4D Chart
	Theme:  CT Area
	Number:  
        14511
        
        
        
	
	Created:  4D Chart 1